﻿<%@ Page EnableEventValidation="false" %>

<%@ Import Namespace="CchenSoft.Portal" %>
<%@ Register TagPrefix="portal" Namespace="CchenSoft.Portal.Web.Controls" Assembly="CchenSoft.Portal" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <portal:Title id="title" runat="server" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <portal:MetaData id="keywords" runat="server" />
    <portal:MetaData id="description" runat="server" />
    <meta http-equiv="pragma" content="no-cache" />

    <script type="text/javascript" src="/scripts/jquery-1.2.6.js"></script>

    <script type="text/javascript" src="/scripts/thickbox.js"></script>

    <link rel="Stylesheet" type="text/css" href="/styles/thickbox.css" />
    <link rel="Stylesheet" type="text/css" href="/themes/brochure/styles/main.css" />
    <% if (PortalContext.Current.IsAdmin) { %>
    <script type="text/javascript" src="/scripts/portal.js"></script>
    <script type="text/javascript" src="/themes/brochure/scripts/google_drag.js"></script>
    <% } %>
</head>
<body>
    <% if (PortalContext.Current.IsAdmin) { %>
    <portal:Portlets ID="portlets" runat="server"></portal:Portlets>
    <% } %>
    <div id="layout-decoration">
        <div id="layout-box">
            <portal:Top ID="top" runat="server"></portal:Top>
            <div id="layout-content">
                <div id="layout-content-box">
                    <portal:LayoutControl ID="content" runat="server"></portal:LayoutControl>
                </div>
            </div>
            <!-- end layout-content -->
            <portal:Bottom ID="buttom" runat="server"></portal:Bottom>
        </div><!-- End layout-box -->
    </div><!-- End layout-decoration -->
    <% if (PortalContext.Current.IsAdmin) { %>

    <script type="text/javascript">
    Portal.initialize(<%=PortalContext.Current.PortalPage.PageId %>);
    _IG_initDrag(document.getElementById("main"), Portal.dragComplete);
    
    function configComplete(result) {
        tb_remove();
        if (result == "OK") { location.reload(); }
    }
    </script>

    <% } %>
</body>
</html>
